<?php

/**
 * Yii view index
 *
 * @author <KTD SOFT>
 * @since Jan 10, 2013 - 2:05:24 AM
 */
$this->widget('DataTable', array(
    'model'   => $this->model,
    'title'   => $this->pageTitle,
    'columns' => array(
        array(
            'name'  => Yii::t('register', 'Name'),
            'value' => '$data->name',
        ),
        array(
            'name'  => Yii::t('register', 'Email'),
            'value' => '$data->email',
        ),
        array(
            'name'  => Yii::t('register', 'Phone number'),
            'value' => '$data->phone_number',
        ),
        array(
            'name'  => Yii::t('register', 'Send at'),
            'value' => '$data->formatDate($data->created_at)',
        ),
        array(
            'name'  => Yii::t('register', 'Coupon code'),
            'value' => '$data->coupon_code',
        ),
        array(
            'name'  => Yii::t('register', 'End time'),
            'value' => '$data->formatDate($data->coupon_end_time)',
        ),
        array(
            'name'  => Yii::t('datatable', 'Status'),
            'value' => '$data->statusLabel',
        ),
    ),
));
